<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="ie6 oldie" lang="zh">
<![endif]-->
<!--[if IE 7]>
<html class="ie7 oldie" lang="zh">
<![endif]-->
<!--[if IE 8]>
<html class="ie8 oldie" lang="zh">
<![endif]-->
<!--[if gt IE 8]>
<html>
<![endif]-->
<html>

<head>
    <meta http-equiv="content-type" content="text/html;
	charset=UTF-8">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <title>360个人中心-修改密码</title>
    <meta name="Keywords" content="360个人中心">
    <meta name="Description" content="360个人中心">
    <meta property="qc:admins" content="155766667260636">
    <!--公共的样式-->
    <link rel="stylesheet" href="/center_password_files/base.css">
    <!--页面自定义样式-->
    <link rel="stylesheet" href="/center_password_files/account_security.css">
    <link rel="stylesheet" href="/center_password_files/uc_modify_password.css">
    <link rel="stylesheet" href="/center_password_files/uc_secMobileOnly.css"></head>

<body style="height:656px;
	">
<!--通用顶部导航开始-->
@include('layout/center_nav')
<!--通用顶部导航结束-->
<div id="doc3">
    <div id="bd">
        <div class="grid-2 clearfix">
            <div class="aside">
                <div class="aside-menu">
                    <ul>
                        <li class="current">
                            <a href="infopwd">
                                <i class="ico ico-7"></i>修改密码</a>
                        </li>

                        <li>
                            <a href="history">
                                <i class="ico ico-12"></i>登录记录</a>
                        </li>

                    </ul>
                </div>
            </div>
            <div class="article">
                <!-- 修改密码 -->
                <div class="mod-3">
                    <div class="art-mod">
                        <div class="art-hd clearfix">
                            <h2>修改密码</h2></div>
                        <div class="art-bd">
                            <p class="f-s14">建议使用字母、数字与标点的组合，可以大幅提升帐号安全</p>
                            <div class="mod-reslut-t2">

                                <div id = "changepwd">
                                    <form action="changepwd" method = "post" id = 'dopwd'>
                                        <input type="hidden" name = "id" value = "{{$uid}}">
                                       <p class="pwd"> <span class="f-s14">原始密码:</span> <input type="password" name = "yspassword" class="pwd_one" id="yspassword"> <span  class="msg" id = "pwd_first"> &nbsp;请输入原始密码</span>
                                       <p class="pwd"> <span class="f-s14">新 密 码 :</span> <input type="password" name = "password" class="pwd_one" id = "password"> <span class="msg" id = "pwd_second">  &nbsp;请输入新密码</span>
                                       <p class="pwd"> <span class="f-s14">新 密 码 :</span> <input type="password" name = "repassword" class="pwd_one" id = "repassword"> <span class="msg" id = "pwd_third">  &nbsp;请再次输入密码</span>
                                        {{ csrf_field() }}
                                        <p class="pwd"> <input type="submit" value = "确认修改" class="btn btn-2 modify-password" id = "subpwd"></p>
                                    </form>
                                </div>
                            </div>
                            <div class="info-tips mod-2">
                                <h3>无法通过密保验证？</h3>
                                <p>您可以进行
                                    <a href="http://i.360.cn/complaint?sb_param=ce5a6438e28eb3937879e5aa296f92a0" class="lnk" target="_blank">帐号申诉</a>，客服在核实您的身份后可为您重置密码</p></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {{--公共尾部--}}
    @include('layout/center_footer')
</div>
<!--公共需要的全局变量-->
<script src = "/jquery-1.8.3.min.js"></script>
<script>
    $('#cen_info').removeClass('current');
    $('#cen_index').removeClass('current');
    $('#cen_help').removeClass('current');
    $('#cen_safe').addClass('current');

    var pwd_one = false;
    var pwd_two = false;
    var pwd_three = false;
    $('input[name = yspassword]').blur(function(){
        var yspassword = $(this).val();
        var id = $('input[name = id]').val();
        $.get('/home/verifypassword',{'password':yspassword,'id':id},function(data){
            if(data == 'yes'){
                $('#pwd_first').html('&nbsp;OK').css({'color':'#6AFA31'});
                 pwd_one = true;
            }else{
                $('#pwd_first').text('密码不正确,请重新输入').css('color','red');
                 pwd_one = false;
            }
        })
    })

    $('input[name=password]').blur(function(){
        var password = $(this).val();
        var reg = /^[\@A-Za-z0-9\!\#\$\%\^\&\*\.\~]{6,20}$/;
        var res = reg.test(password);
        if(!res){
            $('#pwd_second').text('密码格式不正确,请重新输入').css('color','red');
             pwd_two = false;
        }else{
            $('#pwd_second').html('&nbsp;OK').css('color','#6AFA31');
             pwd_two = true;
        }
        if(password == ''){
            $('#pwd_second').text('密码不能为空').css('color','red');
             pwd_two = false;
        }
    });

    $('input[name = repassword]').blur(function(){
        var repassword = $(this).val();
        var password = $('input[name=password]').val();
        if(repassword != password){
            $('#pwd_third').text('两次密码不一致').css('color','red');
            pwd_three = false;
        }else{
            $('#pwd_third').html('&nbsp;OK').css('color','#6AFA31');
            pwd_three = true;
        }
        if(repassword == ''){
            $('#pwd_third').text('密码不能为空').css('color','red');
            pwd_three = false;
        }
    })

    $('#dopwd').submit(function(){
        if(pwd_one && pwd_two && pwd_three){
            return true;
        }else{
            $('#pwd_first').text('密码不正确,请重新输入').css('color','red');
            $('#pwd_second').text('密码不能为空').css('color','red');
            $('#pwd_third').text('密码不能为空').css('color','red');
            return false;
        }
        return false;
    })

</script>
<script type="text/javascript">window.QHDomain = {
        'i360':'http://i.360.cn','login_http':'http://login.360.cn','login_https':'https://login.360.cn','js_login':'http://js.login.360.cn','1360':'http://www.1360.com','qihoo':'http://www.qihoo.com','so':'http://www.so.com','woxihuan':'http://www.woxihuan.com','yunpan':'http://yunpan.360.cn','help':'http://help.360.cn','baike':'http://baike.360.cn','rdLoginUrl': {
            "qihoo":"http:\/\/login.qihoo.com","woxihuan":"http:\/\/login.woxihuan.com","1360":"http:\/\/login.1360.com","so":"http:\/\/login.so.com","360pay":"http:\/\/login.360pay.cn","leidian":"http:\/\/login.leidian.com","qikoo":"http:\/\/login.qikoo.com"
        }
        ,'captcha':'http://i.360.cn/reg/dogetcap?i360','jifen':'http://jifen.360.cn','src':'pcw_i360','srcRoot':'i360'};
    window.QHUserInfo = {
        'loginStatus':'1',/*****1为登录，0为未登录*******/
        'figure':'formal','qid':'1016892506','userName':'360U1016892506','nickName':'','loginEmail':''
    }
    ;window.quc_lang = '';
    window.qCrumb = "d25908";
</script>
<!--公共的js-->

<script type="text/javascript" src="/center_password_files/jquery-1.js"></script>
<script type="text/javascript" src="/center_password_files/5.js"></script>
<script type="text/javascript" charset="utf-8" src="/center_password_files/5_002.js"></script>
<link type="text/css" rel="stylesheet" href="/center_password_files/19487c98fd5be7d2.css">
<script charset="utf-8" src="/center_password_files/cf2f663281f056a4.js"></script>
<!-- <script type="text/javascript" src="/static/js/import/account.js"></script> -->
<script type="text/javascript" src="/center_password_files/base.js"></script>
<script type="text/javascript">$(function() {
                QHPass.init('pcw_i360');
                QHPass.DEBUG = false;
                QHPass.setConfig('domainList',["360pay.cn","yunpan.cn","qihoo.com","qikoo.com","360kan.com","so.com","leidian.com","haosou.com","360.cn","360.com","liangyi.com"]);
                QUCi360.utils.addRandomParam();
                $('.sign-out').on('click',function() {
                            QHPass.signOut(QHDomain.i360);
                        }
                );
                /**统计****/
                monitor.setProject('360passport').getTrack().getClickAndKeydown();
            }
    );
</script>
{{--<script type="text/javascript" src="/center_password_files/uc_modify_password.js"></script>--}}
<script type="text/javascript">$(function() {
        $('.modify-password').on('click',function() {
            QUCi360.modifyPassword(function() {
                QUCi360.utils.panel( {
                            type:'success',message:'密码修改成功',supplement:'请您使用新密码登录360应用',jumpUrl:location.protocol + '//' + location.host + location.pathname
                        }
                );});});});
</script>
<script type="text/javascript" src="/center_password_files/uc_deal_jump.js"></script>
</body>

</html>
<!-- <br>	f0de70bd0cf3e1f1	==	page_load
<br>	f0de70bd0cf3e1f1	==	page_load:0.029
-->